package o;

import com.huawei.appmarket.service.appdetail.view.card.DetailAppInfoCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailAppIntroTranslateCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailCampaignCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailClickCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailDescCardEx;
import com.huawei.appmarket.service.appdetail.view.card.DetailEditorRecommendCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailFaimlySharingCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailGradeCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailHeadCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailHiddenCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailHorizonCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailHorizonDlCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailHorizonDlCardV2;
import com.huawei.appmarket.service.appdetail.view.card.DetailHorizonMaterialRelatedCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailLabelCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailNoticeCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailPermissionCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailReportCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailScreenCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailTextListCard;
import com.huawei.appmarket.service.appdetail.view.card.DetailWatchCard;
import com.huawei.appmarket.service.productpurchase.card.DetailHorizonProductCard;
import com.huawei.appmarket.service.reserve.game.card.ReserveHiddenCard;
import com.huawei.appmarket.service.store.awk.card.DetailHorizontalCourseCard;
import java.util.HashMap;
import java.util.Map;

public abstract class drp {
    private static Map<String, Class<?>> ˋ = new HashMap();

    public static void ˋ() {
        ˊ("detailheadcard", DetailHeadCard.class);
        ˊ("detailscreencard", DetailScreenCard.class);
        ˊ("detailappinfocard", DetailAppInfoCard.class);
        ˊ("detailprizecard", DetailDescCardEx.class);
        ˊ("detaileditorrecommendcard", DetailEditorRecommendCard.class);
        ˊ("detailappintrocard", DetailAppIntroTranslateCard.class);
        ˊ("detaildesccard", DetailDescCardEx.class);
        ˊ("detailwatchcard", DetailWatchCard.class);
        ˊ("detailhiddencard", DetailHiddenCard.class);
        ˊ("detaillabelcard", DetailLabelCard.class);
        ˊ("detailclickcard", DetailClickCard.class);
        ˊ("textlistcard", DetailTextListCard.class);
        ˊ("horizonhomecard", DetailHorizonCard.class);
        ˊ("detailcampaigncard", DetailCampaignCard.class);
        ˊ("reservehiddencard", ReserveHiddenCard.class);
        ˊ("horizonhomedlcard", DetailHorizonDlCard.class);
        ˊ("horizonhomedlcardv2", DetailHorizonDlCardV2.class);
        ˊ("materialrelatedcard", DetailHorizonMaterialRelatedCard.class);
        ˊ("detailpermissioncard", DetailPermissionCard.class);
        ˊ("detailreportcard", DetailReportCard.class);
        ˊ("detailnoticecard", DetailNoticeCard.class);
        ˊ("detailgradecard", DetailGradeCard.class);
        ˊ("detailfamilysharecard", DetailFaimlySharingCard.class);
        ˊ("horizontalproductsinappcard", DetailHorizonProductCard.class);
        ˊ("horizontalcoursecard", DetailHorizontalCourseCard.class);
    }

    public static void ˊ(String str, Class<?> cls) {
        ˋ.put(str, cls);
    }

    public static drl ˎ(String str) {
        Class cls = (Class) ˋ.get(str);
        if (cls == null) {
            return null;
        }
        drl o_drl;
        try {
            o_drl = (drl) cls.getConstructor(new Class[0]).newInstance(new Object[0]);
        } catch (Throwable e) {
            Logger.ˋ("DetailCardFactory", "createDetailView error, viewType:" + str, e);
            o_drl = null;
        }
        return o_drl;
    }
}
